package com.example.KeepAccounts;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager.widget.ViewPager;

import com.example.fresh.R;


public class RecordActivityForKeepAccounts extends AppCompatActivity {
    ViewPager viewPager;
    private TextView textView;

    @Override
    public void onCreate( Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_record_keep_accounts);
        Button button = (Button)findViewById(R.id.record_btn);
        textView = (TextView)findViewById(R.id.fragment_record_item_kind);
    }
    public void onClick(View view){
        switch (view.getId()){
            case R.id.record_back:
                finish();
                break;
            case R.id.item_canyin:
                textView.setText("餐饮");
                break;
            case R.id.item_fushi:
                textView.setText("服饰");
                break;
            case R.id.item_riyong:
                textView.setText("日用");
                break;
            default:
                break;
        }
    }


}

